package cn.interestingshop.service.impl;

import cn.interestingshop.dao.UserAddressDao;
import cn.interestingshop.dao.impl.UserAddressDaoImpl;
import cn.interestingshop.entity.UserAddress;
import cn.interestingshop.service.UserAddressService;

import java.util.List;

public class UserAddressServiceImpl implements UserAddressService {
    UserAddressDao dao=new UserAddressDaoImpl();

    @Override
    public List<UserAddress> selectAll(Integer userId) {
        return dao.selectAll(userId);
    }

    @Override
    public int insert(UserAddress userAddress) {
        return dao.insert(userAddress);
    }
}
